package com.example.exercise.app.user.service;

import com.example.exercise.app.user.dto.request.UserRequest;
import com.example.exercise.app.user.dto.response.UserLoginInfo;
import com.example.exercise.app.user.mapper.entity.UserEntity;

public interface UserService {

    UserLoginInfo login(String userName, String password) throws Exception;

    Integer register(UserRequest userRequest);

    boolean updatePassword(Integer userId, String password, String newPassword);

    int resetPassword(String verifyCode, String userName, String password);

    int updatePersonEmail(String verifyCode, Integer userId, String email);

    UserEntity findByUserId(Integer userId);

    void updatePersonInfo(UserEntity userEntity);
}
